package com.kuang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class SummitDate {
    @RequestMapping("/h")
    public String hello(String name){
        System.out.println("后台接受的数据为:"+name);
        return "hello";
    }
    @RequestMapping("/h2")
    public String hello1(@RequestParam("username") String name){
        System.out.println("后台接受的数据为:"+name);
        return "hello";
    }
}
